﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessModel.Rule

@{
    ViewBag.Title = "Edit";
}

<div id="m-title">
    <h2>编辑规则</h2>
    <div id="m-op">
        @Html.ActionLink("返回", "Details", new { subjectID = Model.SubjectID })
    </div>
</div>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="fly-edit">

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model=>model.SubjectID)

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SubjectID)*@学科：
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.Subject.Name)          
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Name)*@规则名称：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label fly">
            @*@Html.LabelFor(model => model.Description)*@规则说明：
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            规则分值：
        </div>
        <div class="editor-field forIE7">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <div class="editor-label">
            输入控件：
        </div>
        <div class="editor-field">
            @Html.RadioButtonFor(model=>model.InputControl,1,Model.InputControl==(int)PessModel.InputControlMode.TextBox) <span>文本框</span>
            @Html.RadioButtonFor(model=>model.InputControl,2,Model.InputControl==(int)PessModel.InputControlMode.DropDownList) <span>下拉框</span>
            @Html.ValidationMessageFor(model => model.InputControl)
        </div>

        <div class="editor-label">
        </div>
        <div class="editor-field">
            <input type="submit" value="保存" class="u-btn u-btn-save3" />
        </div>
    </fieldset>
}

